package org.obp.pay.pool;

import org.obp.core.pool.TtlPoolManager;
import org.springframework.stereotype.Component;

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;

@Component
public class PaymentPoolManager extends TtlPoolManager {

    @Override
    protected TtlPoolManager.TtlThreadPool initExecutorService() {

        return new TtlThreadPool(
                10,
                10,
                0L,
                TimeUnit.MILLISECONDS,
                new LinkedBlockingQueue<Runnable>(1000));
    }

}
